﻿using System;

class Program
{
    static void Main()
    {
        //Exercise 9.
        //Write an expression that checks for given point (x, y) if it is within the circle K( (1,1), 3) and 
        //out of the rectangle R(top=1, left=-1, width=6, height=2).

        Console.Write("Enter X: ");
        double x = double.Parse(Console.ReadLine());
        Console.Write("Enter Y: ");
        double y = double.Parse(Console.ReadLine());
        bool inCircle = ((x * x) + (y * y)) < (3 * 3);
        bool outRectangle = (x >= 1) && (y <= -1);
        Console.WriteLine(inCircle ^ outRectangle);
    }
}

